﻿@model Exam.Models.Student
@{
    ViewBag.Title = "学生登录";
}

<h2>学生登录</h2>
@using (Html.BeginForm())
{
    @Html.AntiForgeryToken()
    <div class="=form-horizontal">
        <hr />@Html.ValidationSummary(true, "", new { @class = "text-danger" })
        <div class="form-group">
            @Html.LabelFor(m => m.SturLoginName, htmlAttributes: new { @class = "control-lable col-md-2" })
            <div class="col-md-10">
                @Html.EditorFor(m => m.SturLoginName, new { htmlAttributes = new { @class = "form-control" } })@Html.ValidationMessageFor(m => m.SturLoginName, "", new { @class = "text-danger" })
            </div>
        </div>
        <div class="form-group">
            @Html.LabelFor(m => m.StuLoginPwd, htmlAttributes: new { @class = "control-lable col-md-2" })
            <div class="col-md-10">
                @Html.PasswordFor(m => m.StuLoginPwd, new { htmlAttributes = new { @class = "form-control" } })@Html.ValidationMessageFor(m => m.StuLoginPwd, "", new { @class = "text-danger" })
            </div>
        </div>
        <div class="form-group">
            <div class="col-md-offset-2 col-md-10">
                <input type="submit" value="登录" class="btn btn-default" />
            </div>
        </div>
    </div>
}

